{% extends "base.html" %}

{% block main %}
	{% if posts %}
	{% for p in posts %}
	<div class='entry'>
		<h2><a href='/p/{{ p.id }}/'>{{ p.subject }}</a></h2>
		<div class='author-date'>
			<span class='author'><a href='/user/{{ p.userid }}/'>{{ p.userlabel }}</a></span>
			<span class='date'>{{ p.lastmodified_dt|datetimeformat('%Y/%m/%d %H:%M') }}</span>
		</div>
		<div class='content'>{{ p.brief }}</div>
		<div class='entry-foot'>
			<span class='per-link'><a href='/p/{{ p.id }}/'>查看</a></a>
			| <span class='{{ 'commentcount' if p.commentcount else 'no_comment' }}'>
				<a href='/p/{{ p.id }}/#comments'>{{ p.commentcount|show_comment_count }}</a></span>
		</div>
	</div>
	<div class='clear'></div>	
	{% endfor %}
	{% else %}
		<p>暂无文章发布。</p>
	{% endif %}
	
	<!-- pagemarks start -->
	{% if pagemarks %}
	<div class='pagemarks'>
	{% for mark in pagemarks %}
	{% if mark.is_link %}
	<a href='{{ mark.url }}' class='{{ mark.css }}'>{{ mark.label }}</a>
	{% else %}
	<span class='{{ mark.css }}'>{{ mark.label }}</span>
	{% endif %}
	{% endfor %}
	</div>
	{% endif %}
	<!-- pagemarks end -->
	
{% endblock %}

{% block sidebar %}
	
{% endblock %}


